network:
Handle xend restart -- don't take down the network setup and don't
initialize it if it looks already initialized.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
create_bridge ${bridge}
+ if ifconfig 2>/dev/null | grep -q veth0 ; then
+ return
+ fi
+
if ifconfig veth0 2>/dev/null | grep -q veth0 ; then
# Propagate MAC address and ARP responsibilities to virtual interface.
mac=`ifconfig ${netdev} | grep HWadd | sed -e 's/.*\(..:..:..:..:..:..\).*/\1/'`
return
fi
+ return
+
brctl delif ${bridge} ${netdev}
if ifconfig veth0 2>/dev/null | grep -q veth0 ; then